'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    let homeData = await ctx.service.home.index();
    ctx.body = this.config.sendJson({
      data: homeData
    });
  }
}

module.exports = HomeController;
